package 数位染色;

import java.util.Scanner;

public class Main {
    static int N = 20;
    static int[] a = new int[N];


    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int sum = 0;
        String s = in.next();
        for (int i = 0; i < s.length(); i++) {
            a[i] = s.charAt(i) - '0';
            sum += a[i];
        }
        if (sum % 2 != 0) {
            System.out.println("No");
        } else {
            boolean[] f = new boolean[sum / 2 + 1];
            f[0] = true;
            for (int i = 0; i < s.length(); i++) {
                for (int j = sum / 2; j >= a[i]; j--) {
                    f[j] = f[j - a[i]] || f[j];
                }
            }
            if (f[sum / 2]) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }

    }
}
